package com.nineclock.doc.controller;

import com.nineclock.common.entity.Result;
import com.nineclock.doc.dto.DocFolderDto;
import com.nineclock.doc.dto.DocumentDto;
import com.nineclock.doc.service.FolderControllerService;
import com.nineclock.folder.FolderControllerApi;
import com.nineclock.system.dto.SysCompanyContactConfigDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/document")
public class FolderController implements FolderControllerApi {
    @Autowired
    FolderControllerService folderControllerService;


    @Override
    @PostMapping("/insertFolder")
    public Result<DocFolderDto> addFolder(@RequestBody DocFolderDto docFolderDto) {
        folderControllerService.addFolder(docFolderDto);

        return Result.success();
    }
}
